package ${package}.utils;

import net.sf.dozer.util.mapping.DozerBeanMapper;
import net.sf.dozer.util.mapping.MapperIF;

/**
 * dozer单例的wrapper.
 * dozer在jvm里单例即可.
 * 但Dozer4.0自带的DozerBeanMapperSingletonWrapper必须使用dozerBeanMapping.xml初始化，因此重新实现.
 */
public class DozerBeanMapperSingleton {

	private DozerBeanMapperSingleton() {
		// no constructor
	}

	public static MapperIF getInstance() {
		return InternalResource.instance;
	}

	private static class InternalResource {
		private static final MapperIF instance = new DozerBeanMapper();
	}
}
